import request from '@/api/request'

function findMaterial(start, limit, data) {
    return request({
        url: `/lejuAdmin/material/findMaterialByPage/${start}/${limit}`,
        data,
    })
}

function delMaterial(id, data) {
    return request({
        url: `/lejuAdmin/material/delMaterial/${id}`,
        data,
        method: 'DELETE'
    })
}

function uploadOss(data) {
    return request({
        url: '/lejuAdmin/material/uploadFileOssSave',
        data,
        method: 'POST'
    })
}
export {
    findMaterial,
    delMaterial,
    uploadOss
}